package com.github.phoenics.newlives.common.util.wechat;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Phoenics Chow
 * on 2019年11月13日
 */
@NoArgsConstructor
@Data
public class ScanConfig {
    //private String subMchId;              //子商户号
    //必填
    private String appid;                   //公众号id
    private String mch_id;                  //商户号id
    private String nonce_str;               //随机数
    private String sign;                    //签名
    private String body = "项目购买";     //商品描述
    private String out_trade_no;            //商户订单号
    private Long total_fee = 1L;            //总金额
    private String spbill_create_ip = "127.0.0.1";//终端IP
    private String notify_url = "";//通知地址
    private String trade_type = "NATIVE";//交易类型

    public ScanConfig(String appid, String mchId) {
        this.appid = appid;
        this.mch_id = mchId;
    }
}
